cmake_minimum_required(VERSION 2.8)
project(RTPPusher)

set(CMAKE_CXX_STANDARD 11)


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_compile_options(-fpermissive)

add_compile_options(-DBOOST_ALL_DYN_LINK)

include_directories(
        /usr/include/ffmpeg/
        /usr/local/include
        /usr/local/Cellar/ffmpeg/4.2.2_1/include
)

link_directories(
        /usr/local/lib
        /usr/local/Cellar/ffmpeg/4.2.2_1/lib
)

#
#find_package(Boost REQUIRED COMPONENTS
#        #  regex
#        filesystem
#        system
#        log_setup
#        log
#        serialization
#        )
#
#find_package(OpenSSL REQUIRED)


set(CMAKE_VERBOSE_MAKEFILE ON)

#aux_source_directory(./src DIR_SRCS)

file(GLOB_RECURSE DIR_SRCS src/*.c*)
message(${DIR_SRCS})

add_executable(RTPPusher ${DIR_SRCS} )

target_link_libraries(RTPPusher pthread avcodec avfilter avformat avutil postproc swresample swscale)

